<?

if($qwer = mysql_query('SELECT * FROM `'.SDBP.'pages` WHERE `id` = "'.$pageid.'"')) {
	if($page = mysql_fetch_row($qwer)) {
	$title = $page[1]; $text =$page[5];
		echo '<h3>'.$title.'</h3>';
		echo '<p>'.$text.'</p>';
	} else {echo mysql_error();}
} else {echo mysql_error();}

?>